<?php

$sock = new swoole_client(SWOOLE_SOCK_TCP);

if (!$sock->connect("10.18.203.47", 10123, -1)) {
    exit("connect failed. Error: {$sock->errCode}\n");
}

$sync = array("op" => "sync", "data" => array());
$sock->send(json_encode($sync));
$sock->close();


